<?php
include_once("../../../../common/modules/checkA.php");
include_once("../../../../../config.php");

$nid = $_REQUEST ['nid'];

//设置需要搜索的表格的前缀后缀
$table        = $table_Prefix . "package";
//设置需要搜索的表格的前缀后缀

$info = select_one_line_all_items($table,"  nid= ".$nid);


//todo 如果发货状态就不能删除，提醒之
if($info['order_sn'] != '')
{

}


$dsql = "delete from ".$table." where nid = ".$nid;
$query= mysql_query($dsql) or die ('数据库操作失败');
$url="cargo-number-list.php?sys_part=cargo";
echo "1";

?>
